﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GONES.IBLL;

public partial class Console_System_Orgs_OrgEdit : CPage
{
    public string OrgId { get; set; }
    public string DepartName { get; set; }
    public string GroupMaster { get; set; }
    public string ParentId { get; set; }
    public string ParentName { get; set; }
    public string SortNum { get; set; }
    public string ReMark { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
         OrgId = Request.QueryString["ID"].ToString();
        var departManager = AppContext.GetObject("S_DepartManager") as IS_DepartManager;
        GONES.Model.S_Depart depart = new GONES.Model.S_Depart();
        depart = departManager.Get(OrgId);
        if (depart != null)
        {
            DepartName = depart.DepartName.Trim();
            GroupMaster = depart.GroupMaster.Trim();
            ParentId = depart.ParentId.Trim();
            ParentName = departManager.Get(ParentId).DepartName;
            SortNum = depart.SortNum.ToString();
            ReMark = depart.Remark;
        }
    }
}